package com.shujia.wyh.day11;

import java.util.LinkedHashMap;

/*
    LinkedHashMap： 底层是哈希表（保证了key的唯一性）和双链表
 */
public class LinkedHashMapDemo {
    public static void main(String[] args) {
        LinkedHashMap<Student, String> map = new LinkedHashMap<>();

        map.put(new Student("吴涛",18),"打羽毛球");
        map.put(new Student("陈涛",16),"打乒乓球");
        map.put(new Student("王硕",19),"踢足球");
        map.put(new Student("王辉煌",20),"打英雄联盟");
        map.put(new Student("吴涛",18),"打网球");

        System.out.println(map);
    }
}
